home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
0286.ZIP
/
TRAVEL.RUL
< prev
next >
Wrap
Text File
|
1986-10-05
|
1KB
|
77 lines
(* This is a file called TRAVEL.RUL, it can be created in WORDSTAR or any *)
(* text editor like EDLIN. *)
(* The rules file for the travel expert system. *)
(* The main attribute to be searched for is travel, although the program *)
(* will calculate a value for any of the attributes given. *)
rule
travel is by foot
if ok to walk is true
and weather is nice and sunny
rule
travel is by car
if distance < 500
and use of car is true
rule
travel is by train
if distance < 500
and on railway line is true
rule
travel is by plane
if distance >= 500
and flying opinion is not you hate it
and near airport is true
rule
use of car is true
if able to drive is true
and access to car is true
and good parking is true
rule
use of car is false
if able to drive is false
rule
use of car is false
if access to car is false
rule
use of car is false
if good parking is false
rule
weather is nice and sunny
if nice day is true
and cold day is false
rule
weather is cold or wet
if cold day is true
rule
weather is cold or wet
if raining is true
rule
weather is cold or wet
if snowing is true
rule
ok to walk is true
if distance < 2
rule
ok to walk is false
if distance < 2
and weather is cold or wet
rule
ok to walk is false
if distance >= 2